﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace POSPlus.EZBarTender
{
    public partial class SelectTagTypeDialog : Form
    {
        public TagType Type { get; private set; }

        public SelectTagTypeDialog()
        {
            InitializeComponent();
        }

        private void _buttonOK_Click(object sender, EventArgs e)
        {
            switch (_comboBoxTagType.SelectedItem.ToString())
            {
                case "Regular": Type = TagType.Regular; break;
                case "Discontinued Regular": Type = TagType.RegularDiscontinued; break;
                case "Super Sale": Type = TagType.SuperSale; break;
                case "Special Deal": Type = TagType.SpecialDeal; break;
                case "Now Even Lower": Type = TagType.NowEvenLower; break;
                case "Smart Buy": Type = TagType.SmartBuy; break;
                case "Bonus Bucks": Type = TagType.SmartBuy; break;
            }
        }
    }
}
